﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyMaster.master" AutoEventWireup="true" CodeFile="Laptop.aspx.cs" Inherits="Laptop" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="border-bottom: solid silver; margin:10px 25px 0px 25px;">
        <label style="font-size:20px; margin-left:5px;"><b>Nhà sản xuất</b></label>
        <asp:SqlDataSource ID="sql_hangsx" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            SelectCommand="SELECT * FROM hangsx order by tenhang">
        </asp:SqlDataSource>
        <asp:DataList ID="datalistHangSX" runat="server" DataKeyField="id_row" 
            DataSourceID="sql_hangsx" RepeatColumns="5">
            <ItemTemplate>
                <br />
                <table width="150px">
                    <tr>
                        <td style="text-align:center; height:120px;">
                            <asp:Image ID="imgHinhAnh" runat="server" Height="120px" Width="110px" 
                                        ImageUrl='<%# "~/images/NhaSX/" + Eval("tenhang") + ".jpg" %>' />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:center; height:20px;">
                            <asp:HyperLink ID="hyp_hangsx" runat="server" ForeColor="DarkBlue" Font-Bold="true" Text='<%# Eval("tenhang") %>'
                                NavigateUrl='<%# "~/LaptopNhaSX.aspx?id_row=" + Eval("id_row") + "&tenhang=" + Eval("tenhang") %>'>
                            </asp:HyperLink>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
    </div>
</asp:Content>

